JDK 1.8判斷集合種的元素是否存在相同 List<String> str=new ArrayList<>(); str.add("a"); str.add("a"); str.add("b"); long c ...